<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::middleware('auth:api')->get('/user', function (Request $request) {
    return $request->user();
});
Route::middleware('cors')->group(function () {
    Route::get('is_perfect', 'Api\IndexController@is_perfect');
    Route::get('is_member', 'Api\IndexController@is_member');

    Route::get('index_no', 'Api\IndexController@index_no');
    Route::get('active_list', 'Api\IndexController@active_list');
    Route::get('member_plan', 'Api\IndexController@member_plan');
    Route::get('member_plan_show/{id}', 'Api\IndexController@member_plan_show');
    Route::post('member_order', 'Api\IndexController@member_order');

    Route::get('active_show/{id}', 'Api\IndexController@active_show');
    Route::get('user_info', 'Api\IndexController@user_info');
    Route::get('user_coupons', 'Api\IndexController@user_coupons');
    Route::get('store/{id}', 'Api\IndexController@store');
    Route::get('packlist', 'Api\IndexController@packlist');
    Route::get('self_packlist/{id}', 'Api\IndexController@self_packlist');
    Route::post('pack_record', 'Api\IndexController@pack_record');
    Route::get('user_records', 'Api\IndexController@user_records');
    Route::get('diposit_show', 'Api\IndexController@diposit_show');
    Route::get('order_list', 'Api\IndexController@order_list');
    Route::get('buy_pack/{id}', 'Api\IndexController@buy_pack');
    Route::post('course_order', 'Api\IndexController@course_order');
    Route::get('get_ticket_coupon', 'Api\IndexController@get_ticket_coupon');
    Route::post('is_studying', 'Api\IndexController@is_studying');
    Route::post('get_course_record', 'Api\IndexController@get_course_record');
    Route::post('update_password', 'Api\IndexController@update_password');
    Route::get('is_instore', 'Api\IndexController@is_instore');
    Route::post('join_company', 'Api\IndexController@join_company');
    Route::post('day_show', 'Api\IndexController@day_show');
    Route::post('get_outinfo', 'Api\IndexController@get_outinfo');
    Route::get('buy_good/{id}', 'Api\IndexController@buy_good');
    Route::post('good_order', 'Api\IndexController@good_order');
    Route::any('index_mg', 'Api\IndexController@index_mg');
    Route::any('index_age', 'Api\IndexController@index_age');
    Route::any('index_inter', 'Api\IndexController@index_inter');
    Route::any('volume_week', 'Api\IndexController@volume_week');
    Route::any('volume_yue', 'Api\IndexController@volume_yue');
    Route::any('postlock', 'Api\IndexController@postlock');
    Route::any('openlock', 'Api\IndexController@openlock');
    Route::any('bmi_record/{id}', 'Api\IndexController@bmi_record');
    Route::any('get_sex', 'Api\IndexController@get_sex');
    Route::get('first_date', 'Api\IndexController@first_date');
    Route::post('choose_date_order', 'Api\IndexController@choose_date_order');
    Route::get('timeout_member', 'Api\IndexController@timeout_member');












    Route::get('packshow/{id}', 'Api\IndexController@packshow');
    Route::get('target', 'Api\IndexController@target');
    Route::get('coach_show', 'Api\IndexController@coach_show');
    Route::get('my_course', 'Api\IndexController@my_course');
    Route::get('format', 'Api\IndexController@format');
    Route::get('course_show/{id}', 'Api\IndexController@course_show');
    Route::get('course_record/{id}', 'Api\IndexController@course_record');
    Route::post('get_target', 'Api\IndexController@get_target');
    Route::any('test', 'Api\IndexController@test');
    Route::get('buy_ticket', 'Api\IndexController@buy_ticket');
    Route::post('diposit_order', 'Api\IndexController@diposit_order');




    Route::post('get_code', 'Api\IndexController@get_code');
    Route::get('index_fxs/{id}', 'Api\IndexController@index_fxs');
    Route::get('index_cates', 'Api\IndexController@index_cates');
    Route::get('prefer', 'Api\IndexController@prefer');
    Route::get('prefer_pack/{id}', 'Api\IndexController@prefer_pack');
    Route::get('info', 'Api\IndexController@info');
    Route::get('info_coupon', 'Api\IndexController@info_coupon');
    Route::get('info_number/{id}', 'Api\IndexController@info_number');
    Route::get('get_coupon/{id}', 'Api\IndexController@get_coupon');
    Route::post('bespeak_order', 'Api\IndexController@bespeak_order');
    Route::post('choiced_coupon', 'Api\IndexController@choiced_coupon');
    Route::post('prefer_order', 'Api\IndexController@prefer_order');
    Route::post('ticket_order', 'Api\IndexController@ticket_order');
    Route::post('notify', 'Api\IndexController@notify');
    Route::post('free_order_coupon', 'Api\IndexController@free_order_coupon');
    Route::post('cancel_bespeak', 'Api\IndexController@cancel_bespeak');
    Route::post('send', 'Api\IndexController@send');
    Route::post('sendSms', 'Api\IndexController@sendSms');
    Route::post('addinfo', 'Api\IndexController@addinfo');
    Route::any('post_image', 'Api\IndexController@post_image');
    Route::any('get_img_info', 'Api\IndexController@get_img_info');

    //小程序充值面额
    Route::get('recharge','Api\IndexController@recharge');
    //扫码出站小结报告评论
    Route::post('comment','Api\IndexController@comment');
    //检验是否满足免密支付条件
    Route::post('noPasswordPay','Api\IndexController@noPasswordPay');
    //修改免密支付状态
    Route::post('updateNoPasswordPay','Api\IndexController@updateNoPasswordPay');
    //设置密码
    Route::post('setPassword','Api\IndexController@setPassword');
    //保存充值记录
    Route::post('saveRechargeRecords','Api\IndexController@saveRechargeRecords');
    //查询充值记录
    Route::post('getRechargeRecords','Api\IndexController@getRechargeRecords');
    //订单记录
    Route::post('myOrder','Api\IndexController@myOrder');
    //是否开启免密支付
    Route::post('noPasswordPayStatus','Api\IndexController@noPasswordPayStatus');
    //检验免密是否已设置
    Route::post('passwordIsSet','Api\IndexController@passwordIsSet');
    //企业认证人数
    Route::post('rzPeople','Api\IndexController@rzPeople');
    //检验是否已认证企业
    Route::post('isrz','Api\IndexController@isrz');
    //查询充值记录（新增）
    Route::post('rechargeRecords','Api\IndexController@rechargeRecords');
    //检验是否是员工
    Route::post('isStaff','Api\IndexController@isStaff');

    //囤票活动信息
    Route::get('hoardingInstruction','Api\IndexController@hoardingInstruction');
    //囤票活动列表
    Route::post('hoardingList','Api\IndexController@hoardingList');
    Route::post('customerHoarding','Api\IndexController@customerHoarding');
    Route::post('checkHoarding','Api\IndexController@checkHoarding');
    Route::post('addHoarding','Api\IndexController@addHoarding');



});